package defpackage; import cn.wps.moffice.extlibs.Qing3rdLoginConstants; import cn.wps.moffice.main.common.ServerParamsUtil; import com.iflytek.cloud.SpeechUtility; import defpackage.haf; import java.util.HashMap; import org.json.JSONObject; /* renamed from: gwn reason: default package */ public final class gwn { public static boolean bVR() { return gqt.bTm() && ServerParamsUtil.tH("member_messagecenter"); } public static void cA(String str, String str2) { haf.a yB = new haf.a().yC(Qing3rdLoginConstants.WPS_UTYPE).yA("member_pushmsg").yB(str); yB.hRs.tags = new String[]{str2}; dwr.a(yB.bXH().hRs); } public static long d(long j, String str) { long j2; try { j2 = Long.parseLong(str); } catch (Exception e) { j2 = j; } return j2 > 0 ? j2 : j; } public static void xW(final String str) { if (ebo.arU()) { fcx.p(new Runnable() { /* class defpackage.gwn.AnonymousClass1 */ public final void run() { HashMap hashMap = new HashMap(); hashMap.put("Cookie", "wps_sid=" + (ebo.arU() ? fok.bBq().getWPSSid() : "")); try { new JSONObject(lwd.f("https://notice.wps.cn/p/message/mark_read", lwv.a("app_id=%s&mesg_id=%s", 1, str), hashMap)).optInt(SpeechUtility.TAG_RESOURCE_RESULT); } catch (Exception e) { } } }); } } }